package com.tsunami.authority.dto.auth;

import com.tsunami.authority.enums.admin.MoldType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author tnmi
 * @version 1.0
 * 注册实体
 * @date 2023/4/11 20:43
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@Schema(description = "注册实体")
public class RegisterDTO implements Serializable {
    @Schema(description = "用户名称")
    @NotEmpty(message = "用户名称")
    private String name;
    @Schema(description = "用户账号")
    private String account;
    @Schema(description = "手机号码")
    private String tel;
    @Schema(description = "电子邮箱")
    private String email;
    @Schema(description = "登陆密码")
    private String password;
    @Schema(description = "企业/机构名称")
    private String company;
    @Schema(description = "企业/机构简称")
    private String shorter;
    @Schema(description = "应用编码")
    private String appCode;
    @Schema(description = "租户编码")
    private String tenantCode;
    @Schema(description = "租户ID")
    private Long tenantId;
    @Schema(description = "职业类型")
    private MoldType mold;
}
